import request from '@/api/http.js'

// 获取订单详情数据列表 --SaleOrderDetailInfo 价格
export const SaleDetailSearchList = (id) =>{
    return request.get('api/SaleOrderInfo/getDetailPageData?id='+id)
}

// 获取所有订单数据 --SaleOrderInfo
export const SaleSearchList = () =>{
    return request.get('api/SaleOrderInfo/getPageDate')
}

// 条件搜索 --SaleOrderInfo
export const SaleInfoSearch = (params) => {
    console.log('发送参数:', params)
    console.log('最终请求 URL:', 'api/SaleOrderInfo/getPageDate', params);
    const query = new URLSearchParams(params).toString();
    return request.get(`api/SaleOrderInfo/getPageDate?${query}`);
};

//运算数据列表 --SaleOrderDetailInfo
export const SaleAmountList = () =>{
    return request.post('api/Order/getPageDate')
}